cd /Users/Shared/Apps/bedtools-2.17.0
cd bin
!intersectBed -a /Volumes/web-1/Mollusk/bs_larvae_exp/ID_Target_Loci_Check/Lineage_specific_loci.bed -b /Volumes/web-1/trilobite/Crassostrea_gigas_v9_tracks/Cgigas_v9_exon.gff > /Volumes/web-1/Mollusk/bs_larvae_exp/ID_Target_Loci_Check/Genomic_Features/lineage_exon.txt -u
!wc /Volumes/web-1/Mollusk/bs_larvae_exp/ID_Target_Loci_Check/Genomic_Features/lineage_exon.txt
!intersectBed -a /Volumes/web-1/Mollusk/bs_larvae_exp/ID_Target_Loci_Check/Lineage_specific_loci.bed -b /Volumes/web-1/trilobite/Crassostrea_gigas_v9_tracks/Cgigas_v9_gene.gff > /Volumes/web-1/Mollusk/bs_larvae_exp/ID_Target_Loci_Check/Genomic_Features/lineage_gene.txt -u
!wc /Volumes/web-1/Mollusk/bs_larvae_exp/ID_Target_Loci_Check/Genomic_Features/lineage_gene.txt
!intersectBed -a /Volumes/web-1/Mollusk/bs_larvae_exp/ID_Target_Loci_Check/Lineage_specific_loci.bed -b /Volumes/web-1/trilobite/Crassostrea_gigas_v9_tracks/Cgigas_v9_intron.gff > /Volumes/web-1/Mollusk/bs_larvae_exp/ID_Target_Loci_Check/Genomic_Features/lineage_intron.txt -u
!wc /Volumes/web-1/Mollusk/bs_larvae_exp/ID_Target_Loci_Check/Genomic_Features/lineage_intron.txt
!intersectBed -a /Volumes/web-1/Mollusk/bs_larvae_exp/ID_Target_Loci_Check/Lineage_specific_loci.bed -b /Volumes/web-1/trilobite/Crassostrea_gigas_v9_tracks/Cgigas_v9_TE.gff > /Volumes/web-1/Mollusk/bs_larvae_exp/ID_Target_Loci_Check/Genomic_Features/lineage_TE.txt -u
!wc /Volumes/web-1/Mollusk/bs_larvae_exp/ID_Target_Loci_Check/Genomic_Features/lineage_TE.txt
!intersectBed -a /Volumes/web-1/Mollusk/bs_larvae_exp/ID_Target_Loci_Check/Lineage_specific_loci.bed -b /Volumes/web-1/trilobite/Crassostrea_gigas_v9_tracks/Cgigas_v9_1k5p_gene_promoter.gff > /Volumes/web-1/Mollusk/bs_larvae_exp/ID_Target_Loci_Check/Genomic_Features/lineage_promoter.txt -u
!wc /Volumes/web-1/Mollusk/bs_larvae_exp/ID_Target_Loci_Check/Genomic_Features/lineage_promoter.txt
!intersectBed -a /Volumes/web-1/Mollusk/bs_larvae_exp/ID_Target_Loci_Check/Lineage_specific_loci.bed -b /Volumes/web-1/trilobite/Crassostrea_gigas_v9_tracks/Cgigas_v9_COMP_gene_prom_TE.bed > /Volumes/web-1/Mollusk/bs_larvae_exp/ID_Target_Loci_Check/Genomic_Features/lineage_COMP.txt -u
!wc /Volumes/web-1/Mollusk/bs_larvae_exp/ID_Target_Loci_Check/Genomic_Features/lineage_COMP.txt
!intersectBed -a /Volumes/web-1/Mollusk/bs_larvae_exp/ID_Target_Loci_Check/Developmentally_Different_Loci.bed -b /Volumes/web-1/trilobite/Crassostrea_gigas_v9_tracks/Cgigas_v9_exon.gff > /Volumes/web-1/Mollusk/bs_larvae_exp/ID_Target_Loci_Check/Genomic_Features/develop_exon.txt -u
!wc /Volumes/web-1/Mollusk/bs_larvae_exp/ID_Target_Loci_Check/Genomic_Features/develop_exon.txt
!intersectBed -a /Volumes/web-1/Mollusk/bs_larvae_exp/ID_Target_Loci_Check/Developmentally_Different_Loci.bed -b /Volumes/web-1/trilobite/Crassostrea_gigas_v9_tracks/Cgigas_v9_gene.gff > /Volumes/web-1/Mollusk/bs_larvae_exp/ID_Target_Loci_Check/Genomic_Features/develop_gene.txt -u
!wc /Volumes/web-1/Mollusk/bs_larvae_exp/ID_Target_Loci_Check/Genomic_Features/develop_gene.txt
!intersectBed -a /Volumes/web-1/Mollusk/bs_larvae_exp/ID_Target_Loci_Check/Developmentally_Different_Loci.bed -b /Volumes/web-1/trilobite/Crassostrea_gigas_v9_tracks/Cgigas_v9_intron.gff > /Volumes/web-1/Mollusk/bs_larvae_exp/ID_Target_Loci_Check/Genomic_Features/develop_intron.txt -u
!wc /Volumes/web-1/Mollusk/bs_larvae_exp/ID_Target_Loci_Check/Genomic_Features/develop_intron.txt
!intersectBed -a /Volumes/web-1/Mollusk/bs_larvae_exp/ID_Target_Loci_Check/Developmentally_Different_Loci.bed -b /Volumes/web-1/trilobite/Crassostrea_gigas_v9_tracks/Cgigas_v9_TE.gff > /Volumes/web-1/Mollusk/bs_larvae_exp/ID_Target_Loci_Check/Genomic_Features/develop_TE.txt -u
!wc /Volumes/web-1/Mollusk/bs_larvae_exp/ID_Target_Loci_Check/Genomic_Features/develop_TE.txt
!intersectBed -a /Volumes/web-1/Mollusk/bs_larvae_exp/ID_Target_Loci_Check/Developmentally_Different_Loci.bed -b /Volumes/web-1/trilobite/Crassostrea_gigas_v9_tracks/Cgigas_v9_1k5p_gene_promoter.gff > /Volumes/web-1/Mollusk/bs_larvae_exp/ID_Target_Loci_Check/Genomic_Features/develop_1k5p_gene_promoter.txt -u
!wc /Volumes/web-1/Mollusk/bs_larvae_exp/ID_Target_Loci_Check/Genomic_Features/develop_promoter.txt
!intersectBed -a /Volumes/web-1/Mollusk/bs_larvae_exp/ID_Target_Loci_Check/Developmentally_Different_Loci.bed -b /Volumes/web-1/trilobite/Crassostrea_gigas_v9_tracks/Cgigas_v9_COMP_gene_prom_TE.bed > /Volumes/web-1/Mollusk/bs_larvae_exp/ID_Target_Loci_Check/Genomic_Features/develop_COMP.txt -u
!wc /Volumes/web-1/Mollusk/bs_larvae_exp/ID_Target_Loci_Check/Genomic_Features/develop_COMP.txt
!intersectBed -a /Volumes/web-1/trilobite/Crassostrea_gigas_v9_tracks/Cgigas_v9_CG.gff -b /Volumes/web-1/trilobite/Crassostrea_gigas_v9_tracks/Cgigas_v9_exon.gff > /Volumes/web-1/Mollusk/bs_larvae_exp/ID_Target_Loci_Check/Genomic_Features/CG_exon.txt -u
!wc /Volumes/web-1/Mollusk/bs_larvae_exp/ID_Target_Loci_Check/Genomic_Features/CG_exon.txt
!intersectBed -a /Volumes/web-1/trilobite/Crassostrea_gigas_v9_tracks/Cgigas_v9_CG.gff -b /Volumes/web-1/trilobite/Crassostrea_gigas_v9_tracks/Cgigas_v9_gene.gff > /Volumes/web-1/Mollusk/bs_larvae_exp/ID_Target_Loci_Check/Genomic_Features/CG_gene.txt -u
!wc /Volumes/web-1/Mollusk/bs_larvae_exp/ID_Target_Loci_Check/Genomic_Features/CG_gene.txt
!intersectBed -a /Volumes/web-1/trilobite/Crassostrea_gigas_v9_tracks/Cgigas_v9_CG.gff -b /Volumes/web-1/trilobite/Crassostrea_gigas_v9_tracks/Cgigas_v9_intron.gff > /Volumes/web-1/Mollusk/bs_larvae_exp/ID_Target_Loci_Check/Genomic_Features/CG_intron.txt -u
!wc /Volumes/web-1/Mollusk/bs_larvae_exp/ID_Target_Loci_Check/Genomic_Features/CG_intron.txt
!intersectBed -a /Volumes/web-1/trilobite/Crassostrea_gigas_v9_tracks/Cgigas_v9_CG.gff -b /Volumes/web-1/trilobite/Crassostrea_gigas_v9_tracks/Cgigas_v9_TE.gff > /Volumes/web-1/Mollusk/bs_larvae_exp/ID_Target_Loci_Check/Genomic_Features/CG_TE.txt -u
!wc /Volumes/web-1/Mollusk/bs_larvae_exp/ID_Target_Loci_Check/Genomic_Features/CG_TE.txt
!intersectBed -a /Volumes/web-1/trilobite/Crassostrea_gigas_v9_tracks/Cgigas_v9_CG.gff -b /Volumes/web-1/trilobite/Crassostrea_gigas_v9_tracks/Cgigas_v9_1k5p_gene_promoter.gff > /Volumes/web-1/Mollusk/bs_larvae_exp/ID_Target_Loci_Check/Genomic_Features/CG_promoter.txt -u
!wc /Volumes/web-1/Mollusk/bs_larvae_exp/ID_Target_Loci_Check/Genomic_Features/CG_promoter.txt
!intersectBed -a /Volumes/web-1/trilobite/Crassostrea_gigas_v9_tracks/Cgigas_v9_CG.gff -b /Volumes/web-1/trilobite/Crassostrea_gigas_v9_tracks/Cgigas_v9_COMP_gene_prom_TE.bed > /Volumes/web-1/Mollusk/bs_larvae_exp/ID_Target_Loci_Check/Genomic_Features/CG_COMP.txt -u
!wc /Volumes/web-1/Mollusk/bs_larvae_exp/ID_Target_Loci_Check/Genomic_Features/CG_COMP.txt
!intersectBed -a /Volumes/web-1/Mollusk/bs_larvae_exp/ID_Target_Loci_Check/Lineage_specific_loci.bed -b /Volumes/web-1/trilobite/Crassostrea_gigas_v9_tracks/Cgigas_v9_TE.gff > /Volumes/web-1/Mollusk/bs_larvae_exp/ID_Target_Loci_Check/Genomic_Features/lineage_TE_names.txt -wb
!wc /Volumes/web-1/Mollusk/bs_larvae_exp/ID_Target_Loci_Check/Genomic_Features/lineage_TE_names.txt
!intersectBed -a /Volumes/web-1/Mollusk/bs_larvae_exp/ID_Target_Loci_Check/Developmentally_Different_Loci.bed -b /Volumes/web-1/trilobite/Crassostrea_gigas_v9_tracks/Cgigas_v9_TE.gff > /Volumes/web-1/Mollusk/bs_larvae_exp/ID_Target_Loci_Check/Genomic_Features/develop_TE_names.txt -wb
!wc /Volumes/web-1/Mollusk/bs_larvae_exp/ID_Target_Loci_Check/Genomic_Features/develop_TE_names.txt
!intersectBed -a /Volumes/web-1/trilobite/Crassostrea_gigas_v9_tracks/Cgigas_v9_CG.gff -b /Volumes/web-1/trilobite/Crassostrea_gigas_v9_tracks/Cgigas_v9_TE.gff > /Volumes/web-1/Mollusk/bs_larvae_exp/ID_Target_Loci_Check/Genomic_Features/CG_TE_names.txt -wb
!wc /Volumes/web-1/Mollusk/bs_larvae_exp/ID_Target_Loci_Check/Genomic_Features/CG_TE_names.txt